import Vue from "vue";
import {
  Container, Header, Aside, Main,
  Menu, MenuItem, MenuItemGroup, Submenu,
  Row, Col,
  Button,
  Dropdown, DropdownMenu, DropdownItem,
  Breadcrumb, BreadcrumbItem,
  Tag,
  Card,
  Table, TableColumn,
  Form, FormItem, Input, Select, Switch,
  pagination,
  Dialog,
  Option,
  DatePicker,
  MessageBox, Message
} from "element-ui";

import { Loading } from 'element-ui';
Vue.use(Loading); 

const elementUIs = [
  Container, Header, Aside, Main,
  Menu, MenuItem, MenuItemGroup, Submenu,
  Row, Col,
  Button,
  Dropdown, DropdownMenu, DropdownItem,
  Breadcrumb, BreadcrumbItem,
  Tag,
  Card,
  Table, TableColumn,
  Form, FormItem, Input, Select, Switch,
  pagination,
  Dialog,
  Option,
  DatePicker,
  MessageBox, Message
];

elementUIs.forEach((elementUI) => [
  Vue.component(elementUI.name, elementUI)
]);


Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;